#ifndef LEVELACTORPATTERNSLISTWIDGET_H
#define LEVELACTORPATTERNSLISTWIDGET_H

#include "appGlobals.h"
#include <QListWidget>
class AbstractGameObject;

namespace Modes { class EditorMode; }

struct LevelActorPatternsListWidgetItem : public QListWidgetItem
{
	QPointer<AbstractGameObject> object;
};

class LevelActorPatternsListWidget : public QListWidget
{
	Q_OBJECT
public:
	LevelActorPatternsListWidget(QWidget *parent);
	void setLevelEditorMode(QPointer<Modes::EditorMode> lem);
signals:
	void selectedActorPatternChanged(QPointer<AbstractGameObject> go);
private slots:
	void populateView();
	void onItemSelectionChanged();
};

#endif // LEVELACTORPATTERNSLISTWIDGET_H
